<?php echo $header; ?><?php echo $column_left; ?>
<script type="text/javascript">
	$(function(){
		$("#products>div").hover(
			function(){
				$(this).css({background:"url(catalog/view/theme/default/images/products_hover.png) repeat-x",border:"1px solid #83b3ca"});
			},
			function(){
				$(this).css({background:"none",border:"1px solid #ffffff"});
			}
		);
	})
</script>
	<div class="page">
		 <div class="inner">
			<div id="products">
			<h1 style='background: url("catalog/view/theme/default/images/panel_bg.png") repeat-x scroll 0 0 transparent;'><span><?php echo $type_word;?></span></h1>
			<?php if($type!='is_best'){ ?>
			 <h1>
                <b>showing <?php echo $start." - ".$end." of ".$total;?> Results</b>
                &nbsp;&nbsp;&nbsp;&nbsp;
				<a href="index.php?route=product/special/oth&type=<?php echo $type;?>&sort=pd.name&order=<?php echo $name_order;?>"><span style="<?php echo $name_css;?>" >name</span></a>
                <a href="index.php?route=product/special/oth&type=<?php echo $type;?>&sort=p.price&order=<?php echo $price_order;?>"><span style="<?php echo $price_css;?>" >price</span></a>
               <!--  <a href="index.php?route=product/category&path=<?php echo $category_id;?>&sort=total_num&order=<?php echo $sell_order;?>&filter_id=<?php echo $filter_id;?>&filter_text=<?php echo $filter_text;?>"><span>sell</span></a> -->
                <a href="index.php?route=product/special/oth&type=<?php echo $type;?>&sort=p.viewed&order=<?php echo $review_order;?>"><span style="<?php echo $review_css;?>">review</span></a>
            </h1>
            <?php }?>
			<?php foreach ($products as $product) { ?>
	                    <div>
	                        <a href="<?php echo $product['href'];?>" target="_blank" title="<?php echo $product['old_name']?>"><img src="<?php echo $product['thumb']; ?>" />
	                        <h3><?php echo $product['name']; ?></h3>
	                        <?php if (!$product['special']) { ?>
						<span class="price-new"><?php echo $product['price']; ?></span>
					<?php } else { ?>
					<span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>
					<?php } ?>
	                        <?php if($product['discount']!=0){ ?>
					<span>(<?php echo $product['discount'];?>%off)</span>
					<div><?php echo $product['discount'];?>%<br />off</div>
				<?php }?>
	                        </a>
	                    </div>
                    <?php } ?>
                </div>
        <div class="pagination"><?php echo $pagination; ?></div></div>
	</div>
   
<?php echo $footer; ?>